package cn.doitedu.datayiee.rest.controller;


import cn.doitedu.datayiee.rest.pojo.AggExpr;
import cn.doitedu.datayiee.rest.pojo.GroupByBean;
import cn.doitedu.datayiee.rest.pojo.GroupByResultBean;
import cn.doitedu.datayiee.rest.service.GroupByQueryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
public class PvModelController {
    @Autowired
    GroupByQueryService groupByQueryService;

    @RequestMapping(value="/model/pvmodel/groupby")
    public List<GroupByResultBean>  groupByQuery(@RequestBody GroupByBean groupByBean){

        List<GroupByResultBean> beans = groupByQueryService.groupByQuery(groupByBean);


        return beans;
    }



}
